build32: don't discard .shstrtab in linker script
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 2 Jun 2020 11:37:53 +0000 (13:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 2 Jun 2020 11:37:53 +0000 (13:37 +0200)
commit10d27b48b5b4dfbead2d9bf03290984bba4806e4
tree3f9c3e5fe42f47fbada2def405bdafd92f0ec0f8
parent6eb61b1a9dfe23ca443f977799cafb22770708a0
build32: don't discard .shstrtab in linker script

LLVM linker doesn't support discarding .shstrtab, and complains with:

ld -melf_i386_fbsd -N -T build32.lds -o reloc.lnk reloc.o
ld: error: discarding .shstrtab section is not allowed

Add an explicit .shstrtab, .strtab and .symtab sections to the linker
script after the text section in order to make LLVM LD happy and match
the behavior of GNU LD.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Paul Durrant <paul@xen.org>
xen/arch/x86/boot/build32.lds